﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MegavaniaX
{
    /// <summary>
    /// Interface implemented by actors that take damage from the player's perspective.  (The player will always take damage from things that implement IDealsDamageToPlayer.)
    /// </summary>
    public interface ITakesDamage
    {
        /// <summary>
        /// Total health of the actor
        /// </summary>
        int TotalHealth { get; } 

        /// <summary>
        /// Invincibility period after taking damage.
        /// </summary>
        int InvincibilityPeriod { get; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="weapon"></param>
        /// <returns></returns>
        void TakeDamage(IDealsDamage damageDealer);
    }
}
